<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <meta charset="UTF-8">
    <title>客户信息保存</title>
    <link rel="stylesheet" href="/js/bootstrap/css/bootstrap.css">
    <script src="/js/jquery/jquery.min.js"></script>
    <script src="/js/bootstrap/js/bootstrap.js"></script>
</head>
<body>
<div style="margin-top: 20px">
    <form class="form-horizontal m" action="/customer/saveOrUpdate" method="post">
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">客户名称：</label>
            <div class="col-sm-8">
                <input  name="name" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">联系方式：</label>
            <div class="col-sm-8">
                <input  name="phone" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">来源渠道：</label>
            <div class="col-sm-8">
                <select class="form-control" name="sourceType.dict_value">
                    <option th:each="dictData:${sourceTypeList}"
                            th:text="${dictData.dict_label}"
                            th:value="${dictData.dict_value}">百度</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">意向校区：</label>
            <div class="col-sm-8">
                <select class="form-control" name="schoolType.dict_value">
                    <option th:each="dictData:${schoolTypeList}" th:text="${dictData.dict_label}" th:value="${dictData.dict_value}">百度</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-6"></label>
            <div class="col-sm-6">
                <input class="btn btn-primary" type="submit" value="提交">
            </div>
        </div>
    </form>
</div>
</body>
</html>